package com.example.huaweiod.practice;

import java.util.PriorityQueue;
import java.util.Scanner;

public class hj3 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int count = in.nextInt();
        PriorityQueue<Integer> queue = new PriorityQueue<>(count);
        for (int i = 0; i < count; i++) {
            int nextInt = in.nextInt();
            if (!queue.contains(nextInt)) {
                queue.add(nextInt);
            }
        }
        while (queue.size() > 0) {
            System.out.println(queue.poll());
        }
    }
}
